package com.njmaomao.gj.pyot.domain.wechat;

/**
 * 重推消息
 *
 * @author dylan
 * @time 2018/5/21.
 */
public class RetryMessage<T> {

    /**
     *重发消息的类型
     */
    private PaymentEventType paymentEventType;

    /**
     * 回调时所需要传的消息体
     */
    private T data;

    private RetryMessage() {
    }

    public RetryMessage(PaymentEventType paymentEventType, T data) {
        this.paymentEventType = paymentEventType;
        this.data = data;
    }

    public PaymentEventType getPaymentEventType() {
        return paymentEventType;
    }

    public T getData() {
        return data;
    }

    public enum PaymentEventType {
        PAY_SUCCESS, REFUND_SUCCESS
    }
}
